<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>login</title>
<link rel="stylesheet" type="text/css" href="css/login.css"/>
</head>
<body>
	<html:form action = "/user">
		<div id = "divDangNhap">
		<table id = "dangnhap">
			<tr>
				<td colspan = "2">
					<%if(request.getAttribute("loi") != null){
						if(request.getAttribute("loi") == "saidangnhap")%>
							<p style="color: red;">Tên đăng nhập hoặc mật khẩu không đúng</p>
					<% ;}%>
					
				</td>
			</tr>
			<tr>
				<td>Tên đăng nhập: </td>
				<td><html:text property="user"></html:text></td>
			</tr>
			<tr>
				<td>Mật khẩu: </td>
				<td><html:password property="password"></html:password></td>
			</tr>
			<tr>
				<td></td>
				<td><html:submit value="Login"></html:submit> </td>
			</tr>
			<tr>
				<td></td>
				<td><a href = "http://localhost:8080/culaocham/dangKy.jsp">  Đăng ký</a> </td>
			</tr>
		</table>
		</div>
	</html:form>
	
</body>
</html>